package com.cm.caseManagement.dao;

import com.cm.caseManagement.pojo.entity.CmBeforeLitigation;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 诉前Mapper接口
 *
 * @author ruoyi
 * @date 2025-10-05
 */
@Mapper
public interface CmBeforeLitigationMapper
{
    /**
     * 查询诉前
     *
     * @param id 诉前主键
     * @return 诉前
     */
    public CmBeforeLitigation selectCmBeforeLitigationById(Long id);

    /**
     * 查询诉前列表
     *
     * @param cmBeforeLitigation 诉前
     * @return 诉前集合
     */
    public List<CmBeforeLitigation> selectCmBeforeLitigationList(CmBeforeLitigation cmBeforeLitigation);

    /**
     * 新增诉前
     *
     * @param cmBeforeLitigation 诉前
     * @return 结果
     */
    public int insertCmBeforeLitigation(CmBeforeLitigation cmBeforeLitigation);

    /**
     * 修改诉前
     *
     * @param cmBeforeLitigation 诉前
     * @return 结果
     */
    public int updateCmBeforeLitigation(CmBeforeLitigation cmBeforeLitigation);

    /**
     * 删除诉前
     *
     * @param id 诉前主键
     * @return 结果
     */
    public int deleteCmBeforeLitigationById(Long id);

    /**
     * 批量删除诉前
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCmBeforeLitigationByIds(Long[] ids);

    /**
     * 根据案件id查询诉前相关信息
     * @param caseId
     * @return
     */
    CmBeforeLitigation selectCmBeforeLitigationByCaseId(Long caseId);
}
